package business.report.impl;

import business.report.DrugProductionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import report.domain.DrugProduction;
import report.domain.DrugProductionCriteria;
import report.mapper.DrugProductionMapper;

import java.util.List;

/**
 * Created by SunZZ on 2016/6/19.
 */
@Service(value = "drugProductionService")
public class DrugProductionServiceImpl implements DrugProductionService{
    @Autowired
    DrugProductionMapper drugProductionMapper;

    @Override
    public List<DrugProduction> getDrugProduction() {
        DrugProductionCriteria criteria =new DrugProductionCriteria();
        criteria.createCriteria().getAllCriteria();
        return drugProductionMapper.selectByExample(criteria);
    }
}
